package net.tycmc.cty.ctyms.timejob.iems.job;

import net.tycmc.cty.ctyms.timejob.iems.service.GatingAlarmService;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 定时作业，用于处理门控报警
 * @author LXF
 */
public class GatingAlarmJob extends QuartzJobBean {
	
	private GatingAlarmService jobData;

	@Override
	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		//门控报警
		try {
			this.jobData.gatingAutoAlarm();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public GatingAlarmService getJobData() {
		return jobData;
	}

	public void setJobData(GatingAlarmService jobData) {
		this.jobData = jobData;
	}

}
